﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_Org.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_Org
		[Serializable]
	[TableMapping("TU_Org")]
	public class OrgInfo : EntityBase
	{
		#region Constructor
		
		public OrgInfo()
			:this("")
		{}
		public OrgInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private string _orgid;     
		/// <summary>
		/// 组织结构编号
        /// </summary>		
		[FieldMapping("OrgID" )]		
		[NotNullValidator(MessageTemplate="组织结构编号不能为空")]
				public string OrgID
        {
            get
            { 
            	return _orgid; 
            }
            set
            { 
            	if(_orgid != value)
            	{            	
            		base.OnPropertyChanged("OrgID", _orgid, value);
            		_orgid = value; 
            	}
            }
        }        
				
		private string _orgfullname;     
		/// <summary>
		/// 组织机构名称
        /// </summary>		
		[FieldMapping("OrgFullName" )]		
		[NotNullValidator(MessageTemplate="组织机构名称不能为空")]
				public string OrgFullName
        {
            get
            { 
            	return _orgfullname; 
            }
            set
            { 
            	if(_orgfullname != value)
            	{            	
            		base.OnPropertyChanged("OrgFullName", _orgfullname, value);
            		_orgfullname = value; 
            	}
            }
        }        
				
		private string _orgshortname;     
		/// <summary>
		/// OrgShortName
        /// </summary>		
		[FieldMapping("OrgShortName" )]		
				public string OrgShortName
        {
            get
            { 
            	return _orgshortname; 
            }
            set
            { 
            	if(_orgshortname != value)
            	{            	
            		base.OnPropertyChanged("OrgShortName", _orgshortname, value);
            		_orgshortname = value; 
            	}
            }
        }        
				
		private string _orgdesc;     
		/// <summary>
		/// 描述
        /// </summary>		
		[FieldMapping("OrgDesc" )]		
				public string OrgDesc
        {
            get
            { 
            	return _orgdesc; 
            }
            set
            { 
            	if(_orgdesc != value)
            	{            	
            		base.OnPropertyChanged("OrgDesc", _orgdesc, value);
            		_orgdesc = value; 
            	}
            }
        }        
				
		private string _orgparent;     
		/// <summary>
		/// 父机构编号
        /// </summary>		
		[FieldMapping("OrgParent" )]		
				public string OrgParent
        {
            get
            { 
            	return _orgparent; 
            }
            set
            { 
            	if(_orgparent != value)
            	{            	
            		base.OnPropertyChanged("OrgParent", _orgparent, value);
            		_orgparent = value; 
            	}
            }
        }        
		   
	}
}